package com.ruoyi.purchase.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * AllocationDetail对象 allocation_detail
 * 
 * @author kevinness
 * @date 2025-01-18
 */
public class AllocationDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String allocationDetailNo;

    /** 调拨编号 */
    private String allocationNo;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 货品批号 */
    @Excel(name = "货品批号")
    private String rawProductBatch;

    /** 货品名称 */
    private String rawProductName;

    /** 货品重量 */
    private Double weight;

    /** 重量单位 */
    private String weightUnit;

    /** 调拨件数 */
    private Integer transportQuantity;

    /** 货源地 */
    private String origin;

    /** 配送状态 */
    private String status;

    public AllocationDetail() {
    }

    public AllocationDetail(AllocationDetail allocationDetail) {
        this.allocationDetailNo = allocationDetail.getAllocationDetailNo();
        this.allocationNo = allocationDetail.getAllocationNo();
        this.orderNo = allocationDetail.getOrderNo();
        this.rawProductBatch = allocationDetail.getRawProductBatch();
        this.rawProductName = allocationDetail.getRawProductName();
        this.weight = allocationDetail.getWeight();
        this.weightUnit = allocationDetail.getWeightUnit();
        this.transportQuantity = allocationDetail.getTransportQuantity();
        this.origin = allocationDetail.getOrigin();
        this.status = allocationDetail.getStatus();
    }

    public void setAllocationNo(String allocationNo)
    {
        this.allocationNo = allocationNo;
    }

    public String getAllocationNo()
    {
        return allocationNo;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setRawProductBatch(String rawProductBatch)
    {
        this.rawProductBatch = rawProductBatch;
    }

    public String getRawProductBatch()
    {
        return rawProductBatch;
    }

    public String getAllocationDetailNo() {
        return allocationDetailNo;
    }

    public void setAllocationDetailNo(String allocationDetailNo) {
        this.allocationDetailNo = allocationDetailNo;
    }

    public String getRawProductName() {
        return rawProductName;
    }

    public void setRawProductName(String rawProductName) {
        this.rawProductName = rawProductName;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getWeightUnit() {
        return weightUnit;
    }

    public void setWeightUnit(String weightUnit) {
        this.weightUnit = weightUnit;
    }

    public Integer getTransportQuantity() {
        return transportQuantity;
    }

    public void setTransportQuantity(Integer transportQuantity) {
        this.transportQuantity = transportQuantity;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("allocationDetailNo", getAllocationDetailNo())
            .append("allocationNo", getAllocationNo())
            .append("orderNo", getOrderNo())
            .append("rawProductBatch", getRawProductBatch())
            .append("rawProductName", getRawProductName())
            .append("weight", getWeight())
            .append("weightUnit", getWeightUnit())
            .append("transportQuantity", getTransportQuantity())
            .append("origin", getOrigin())
            .append("status", getStatus())
            .toString();
    }
}
